<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>v-model</title>
		<script src="js/vuejs-2.5.16.js"></script>
	</head>

	<body>
		<div id="app">
			<input name="username" v-model="user.username">
			<input name="password" v-model="user.password">
		</div>
	</body>
	<script>
		//view model
		new Vue({
			el:"#app",
			data:{
			    user:{
			        username:"zzh",
					password:123
				}
			}
		})
	</script>

</html>